package com.wyp.design.pattern.creational.abstractfactory;


/**
 * @author: yipeng.wang01@hand-china.com-25490
 * @TIME: 2019/12/26/15:50
 **/
public class Test {

    public static void main(String[] args) {
        Factory factory = new JavaFactory();
        Video video = factory.createVideo();
        Code code = factory.createCode();
        video.produce();
        code.produce();

        Factory factory1 = new PythonFactory();
        Code code1 = factory1.createCode();
        Video video1 = factory1.createVideo();
        video1.produce();
        code1.produce();
    }
}
